<?php
/* @var $this PejabatController */
/* @var $model Pejabat */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'horizontalForm',
        'type' => 'horizontal',
        'enableAjaxValidation' => false,
    ));
    ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

    <div class="control-group ">
        <label class="control-label">Kode Jenis</label>
        <div class="controls">
             <?php echo $form->textField($model, 'id_jenis_rek', array('size' => 5, 'maxlength' => 5)); ?>
        </div>
    </div>
    
    <div class="control-group ">
        <label class="control-label">Nomor Rekening</label>
        <div class="controls">
             <?php echo $form->textField($model, 'no_rekening', array('size' => 10, 'maxlength' => 10)); ?>
        </div>
    </div>    

    <div class="control-group ">
        <label class="control-label">Jenis Rekening</label>
        <div class="controls">
             <?php echo $form->textField($model, 'jenis_rekening', array('size' => 100, 'maxlength' => 100)); ?>
        </div>
    </div>
    
    <div class="control-group ">
        <label class="control-label">Nama Rekening</label>
        <div class="controls">
             <?php echo $form->DropDownList($model,'id_rekening', CHtml::listData(Rekening::model()->findAll(),'id_rekening', 'nama_rekening'), array('class'=>'span3')); ?>
        </div>
    </div>

    <div class="control-group ">
        <label class="control-label">Kategori Reklame</label>
        <div class="controls">
             <?php echo $form->textField($model, 'kategori_reklame', array('size' => 75, 'maxlength' => 75)); ?>
        </div>
    </div>  

    <?php
        $this->widget('bootstrap.widgets.TbButton', array(
                'buttonType' => 'submit',
                'type' => 'success',
				'icon' => 'save',
				'label' => 'Simpan',
            'htmlOptions'=>array('style'=>'margin-left:170px'),
         ));
    ?>

<?php $this->endWidget(); ?>

</div><!-- form -->